class Person:
    def __init__(self, name, gender, age, remaining_credit,
                 phone_model, battery_capacity, screen_size,
                 max_standby_time, points):
        self.name = name
        self.gender = gender
        self.age = age
        self.remaining_credit = remaining_credit
        self.phone_model = phone_model
        self.battery_capacity = battery_capacity
        self.screen_size = screen_size
        self.max_standby_time = max_standby_time
        self.points = points

    # 发短信
    @staticmethod
    def send_message(message, from_name, to_name):
        print(f"{from_name}给{to_name}发送短信: {message}")

    # 打电话
    def call(self, phone_number, duration):
        if not phone_number:
            print("错误：电话号码不能为空。")
            return
        if self.remaining_credit < 1:
            print("错误：话费不足，无法拨打电话。")
            return

        # 计算费用和积分
        if duration <= 10:
            cost = duration * 1
            points = duration * 15
        elif duration <= 20:
            cost = duration * 0.8
            points = duration * 39
        else:
            cost = duration * 0.65
            points = duration * 48

        if self.remaining_credit < cost:
            print("错误：话费不足，无法支付通话费用。")
            return

        self.remaining_credit -= cost
        self.points += points
        print(f"拨打电话成功，花费: {cost}元，积分: {points}分。")
